home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / graphicgems4.lha / GemsIV / ptpoly_haines / Makefile next >
Encoding:
Makefile  |  1995-02-06  |  818 b   |  28 lines

  1. # Valid options: -DTIMER -DDISPLAY -DCONVEX -DHYBRID -DSORT -DRANDOM -DWINDING
  2. # You can define $MAKEOPTS outside the program for testing purposes.
  3. #
  4. # for testing purposes we leave all options off and invoke through $MAKEOPTS
  5. CCFLAGS=-O
  6. # good default if not testing:
  7. # CCFLAGS=-O -DTIMER -DDISPLAY -DSORT -DRANDOM
  8.  
  9.  
  10. # use this one for making one which will display the tests being done on an HP
  11. # and do:
  12. # export LDOPTS="-a shared"
  13.  
  14. p_test:        ptinpoly.o ptinpoly.h p_test.c
  15.         cc -o p_test p_test.c $(CCFLAGS) $(MAKEOPTS) ptinpoly.o -lm
  16. # include these lines for linking in HP Starbase, for display version
  17. #            -L /usr/lib/X11R4 \
  18. #            -lXwindow \
  19. #            -lsb \
  20. #            -lXhp11 -lX11 -ldld \
  21. #            -lm
  22.  
  23. ptinpoly.o:    ptinpoly.c ptinpoly.h
  24.         cc -o ptinpoly.o -c ptinpoly.c $(CCFLAGS) $(MAKEOPTS)
  25.  
  26. clean:
  27.         rm -f ptinpoly.o p_test
  28.